package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Student1Mapper;
import com.ruoyi.system.domain.Student1;
import com.ruoyi.system.service.IStudent1Service;

/**
 * 学生表1Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
@Service
public class Student1ServiceImpl implements IStudent1Service 
{
    @Autowired
    private Student1Mapper student1Mapper;

    /**
     * 查询学生表1
     * 
     * @param id 学生表1主键
     * @return 学生表1
     */
    @Override
    public Student1 selectStudent1ById(Long id)
    {
        return student1Mapper.selectStudent1ById(id);
    }

    /**
     * 查询学生表1列表
     * 
     * @param student1 学生表1
     * @return 学生表1
     */
    @Override
    public List<Student1> selectStudent1List(Student1 student1)
    {
        return student1Mapper.selectStudent1List(student1);
    }

    /**
     * 新增学生表1
     * 
     * @param student1 学生表1
     * @return 结果
     */
    @Override
    public int insertStudent1(Student1 student1)
    {
        return student1Mapper.insertStudent1(student1);
    }

    /**
     * 修改学生表1
     * 
     * @param student1 学生表1
     * @return 结果
     */
    @Override
    public int updateStudent1(Student1 student1)
    {
        return student1Mapper.updateStudent1(student1);
    }

    /**
     * 批量删除学生表1
     * 
     * @param ids 需要删除的学生表1主键
     * @return 结果
     */
    @Override
    public int deleteStudent1ByIds(Long[] ids)
    {
        return student1Mapper.deleteStudent1ByIds(ids);
    }

    /**
     * 删除学生表1信息
     * 
     * @param id 学生表1主键
     * @return 结果
     */
    @Override
    public int deleteStudent1ById(Long id)
    {
        return student1Mapper.deleteStudent1ById(id);
    }
}
